package demo.software;

import demo.hardware.impl.Cpu;
import demo.hardware.impl.Disk;

/**
 * @author ZhouWeiBo
 * @create 2022/6/8
 */
public class UpdateSoftware implements ISoftwareVisitor {
    @Override
    public void visitCpu(Cpu cpu) {
        cpu.command = "1+1=2";
    }

    @Override
    public void visitDisk(Disk disk) {
        disk.command = "记住：1+1=2";
    }
}
